export const baseurl="http://124.93.196.45:10191"

export const request=(option)=>{
	return new Promise((resolvue,reject)=>{
		uni.request({
			url:baseurl+option.url,
			method:option.method || 'get',
			data:option.data || '',
			header:{
				"Authorization":uni.getStorageSync('token') || ""
			},
			success(res) {
				resolvue(res)
				console.log(res)
			},
			fail: (err) => {
				console.log(err)
			}
		})
	})
}